<%@ page import="kioscodeal.Marca" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'marca.label', default: 'Marca')}" />
		<title><g:message code="default.edit.label" args="[entityName]" /></title>
	</head>
	<body>
		<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title"><i class="fa fa-long-arrow-right"></i> <g:message code="default.edit.label" args="[entityName]" /></h3>
				</div>
				<div class="panel-body">
					<div class="row">
						<div class="col-lg-12">
							<div id="edit-marca" class="content scaffold-edit" role="main">								
								<g:if test="${flash.message}">
								<div class="message" role="status">${flash.message}</div>
								</g:if>
								<g:hasErrors bean="${marcaInstance}">
								<ul class="errors" role="alert">
									<g:eachError bean="${marcaInstance}" var="error">
									<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
									</g:eachError>
								</ul>
								</g:hasErrors>
								<g:form url="[resource:marcaInstance, action:'update']" method="PUT" >
									<g:hiddenField name="version" value="${marcaInstance?.version}" />
									<fieldset class="form">
										<g:render template="form"/>
									</fieldset>
									<fieldset class="buttons">										
										<div class="col-lg-2">
										</div>
										<div class="col-lg-2">
											<g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />
										</div>
										<div class="col-lg-2">
											<a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a>
										</div>																			
										<div class="col-lg-2">
											<g:link class="list" action="index"><g:message code="default.list.label" args="[entityName]" /></g:link>						
										</div>
										<div class="col-lg-2">							
											<g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link>
										</div>
										<div class="col-lg-2">
										</div>
									</fieldset>
								</g:form>
							</div>
						</div>
					</div>
				</div>
		</div>		
	</body>
</html>
